<?php
/**
 * Created by PhpStorm.
 * User: alice
 * Date: 2015/12/28
 * Time: 12:26
 */

/**
 * Class Involved_QuoteModel
 */

class Involved_QuoteModel extends BaseModel{

    protected $table = 'quote';


    /******************   App接口   *********************/

    #获取报价单列表
    public function GetQuoteList($inquiry_id)
    {
        return DB::table($this->table)
                ->select('supplier','price','product_name')
                ->where('inquiry_id',$inquiry_id)
                ->get();

    }

    /**
     * 获取定制单报价列表
     * @param $customize_id
     * @return mixed
     * @author alice
     * @date 2016-2-25
     */
    public function GetCustomizeQuoteList($customize_id)
    {
        return DB::table($this->table)
            ->select('supplier','price','product_name')
            ->where('customize_id',$customize_id)
            ->get();

    }


}